'use strict'
const process = require('child_process')
const JavaRun = require('./JavaRun')
const crypto = require('crypto')
const OneStepCrypt = {
  md5(str) {
    let res = crypto.createHash('md5').update(str, 'utf8').digest('hex')
    return res
  },
  aes(key, str) {
    let res = JavaRun.aes(key, str)
    return res
  }
}
module.exports = OneStepCrypt